package com.ks.freezer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author dCoder
 * @since 2022-04-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Freezer对象", description="")
public class Freezer implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据唯一ID")
    @TableId(value = "freezer_user_id", type = IdType.ID_WORKER_STR)
    private String freezerUserId;

    @ApiModelProperty(value = "冰箱id对应用户id")
    private String freezerId;

    @ApiModelProperty(value = "冰箱内剩余食材id")
    private String ingredientId;

    @ApiModelProperty(value = "食材剩余量")
    @TableField("Ingredient_rest")
    private Double ingredientRest;

    @ApiModelProperty(value = "放入时间")
    private Date depositTime;

}
